var gulp = require('gulp');
var babel = require('gulp-babel');

//praise button code transform es5
gulp.task('praise2es5', function(){
    return gulp.src(['src/**/*.es','!src/public/*/*.es'])
        .pipe(babel({presets:['es2015']}))
        .pipe(gulp.dest('./build'));
});


gulp.task('default',['praise2es5'], () => {
    gulp.watch(['src/**/*.es','!src/public/*/*.es'],['praise2es5']);
});
